import 'package:flutter/material.dart';
import 'package:center_bus/center_bus.dart';

class HomeCardImpl extends HomeCard {
  @override
  Widget getCard() {
    return Container(
      padding: const EdgeInsets.fromLTRB(40, 8, 20, 0),
      child: Row(
        children: [
          Expanded(
            flex: 325,
            child: Get.find<PCConnectionCard>().getCard(),
          ),
          const SizedBox(
            width: 40,
          ),
          Expanded(
            flex: 748,
            child: Column(
              children: [
                Get.find<BannerCard>().getCard(),
                const SizedBox(
                  height: 20,
                ),
                Expanded(
                  child: Scrollbar(
                      child: SingleChildScrollView(
                    primary: true,
                    child: Row(
                      crossAxisAlignment: CrossAxisAlignment.start,
                      children: [
                        Flexible(
                            flex: 1,
                            child: Column(
                              children: [
                                Get.find<MicrophoneArrayCard>().getCard(),
                                const SizedBox(
                                  height: 20,
                                ),
                                Get.find<MyDevicesCard>().getCard(),
                              ],
                            )),
                        const SizedBox(
                          width: 20,
                        ),
                        Flexible(
                            flex: 1,
                            child: Column(
                              children: [
                                Get.find<DtsSoundEffectCard>().getCard(),
                                const SizedBox(
                                  height: 20,
                                ),
                                Get.find<ClipBoardCard>().getCard(),
                              ],
                            )),
                      ],
                    ),
                  )),
                )
              ],
            ),
          )
        ],
      ),
    );
  }
}
